package csci318.sfm.g3.fetest;

import javafx.beans.property.SimpleStringProperty;

public class Person {

    private final SimpleStringProperty firstName = new SimpleStringProperty("");
    private final SimpleStringProperty lastName = new SimpleStringProperty("");
    private final SimpleStringProperty email = new SimpleStringProperty("");
    private final SimpleStringProperty userID = new SimpleStringProperty("");

    public Person() {
        this("", "", "", "");
    }

    public Person(String firstName, String lastName, String email, String uid) {
        setFirstName(firstName);
        setLastName(lastName);
        setEmail(email);
        setUserID(uid);
    }

    public String getUserID() {
        return userID.get();
    }

    public void setUserID(String uid) {
        userID.set(uid);
    }

    public String getFirstName() {
        return firstName.get();
    }

    public void setFirstName(String fName) {
        firstName.set(fName);
    }

    public String getLastName() {
        return lastName.get();
    }

    public void setLastName(String fName) {
        lastName.set(fName);
    }

    public String getPrimary() {
        return getEmail();
    }

    public String getSecondary() {
        return getEmail();
    }

    public String getEmail() {
        return email.get();
    }

    public void setEmail(String fName) {
        email.set(fName);
    }

    public SimpleStringProperty firstNameProperty() {
        return firstName;
    }

    public SimpleStringProperty lastNameProperty() {
        return lastName;
    }

    public SimpleStringProperty emailProperty() {
        return email;
    }

    public SimpleStringProperty userIDProperty() {
        return userID;
    }
}